﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using BaseData.Models;

namespace BaseData.Exts
{
    public class ContextExt : WebGZPAGContext
    {
        public ContextExt(string key)
        {
        }
        //public DbSet<Web_Base_Accounts_Ext_Base> DeviceConfigurations { get; set; }
        //protected override void OnModelCreating(DbModelBuilder modelBuilder)
        //{
        //    base.OnModelCreating(modelBuilder);
        //    modelBuilder.Entity<Web_Base_Accounts_Ext_Base>().Property(x => x.AccId).IsOptional();
        //}
        public ContextExt()
        {
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.Entity<Web_Base_News_Node_Ext>().Property(x => x.NodeId).IsOptional();
        }
    }
}
